The string "Take Screenshot" is used both by the action in the
window menu and the screenshot/recording toggle in the UI.
However in some languages, it would be best to use different
strings for the two use cases.
Address this by adding context to the window menu string, so
it can be differentiated from the string in the screenshot UI.
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7979
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3503>
let item;
// Translators: entry in the window right click menu.
- item = this.addAction(_('Take Screenshot'), async () => {
+ item = this.addAction(C_('window-menu', 'Take Screenshot'), async () => {
try {
const actor = window.get_compositor_private();
const content = actor.paint_to_content(null);